namespace EntityKit.Runtime
{
    public class EventLocalizationLanguageChanged : IEventMessage
    {
        public Language Language;
        public static EventLocalizationLanguageChanged Create(Language language)
        {
            var eventLocalizationLanguageChanged = new EventLocalizationLanguageChanged();
            eventLocalizationLanguageChanged.Language = language;
            return eventLocalizationLanguageChanged;
        }

        public void OnSpawn()
        {
            Language = Language.Unspecified;
        }
    }
}